﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<PhotoGalleryEnteties.PhotoComment>>" %>

<%if(ViewData.ContainsKey( "CurrentUserName") && !(bool)ViewData["SubscribeExists"]) {%>
      <%=Html.ActionLink("Subscribe for comments", "AddSubscribe","Comment",new{id=(int)ViewData ["PhotoId"],returnUrl=Request.RawUrl  } ,null) %>

    <%} %>
<%Html.RenderPartial("Comments", Model);%>
<%if(ViewData.ContainsKey( "CurrentUserName"))
      Html.RenderAction("Create", "Comment", ViewData["PhotoId"]);%>


